package com.work.dao;

import com.work.pojo.User;
import com.work.util.DBUtil;

public class UserDaoImpl extends DBUtil implements UserDao {
    @Override
    public int register(User user) {
        return 0;
    }

    @Override
    public User login(String user_name,String user_password) {
        String sql="select user_id,account,age,name from user where user_name = ? and user_password = ?";
        return super.executeQueryOne(sql,User.class,user_name,user_password);
    }


}
